package com.aaa.charge;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@SpringBootApplication
@ComponentScan(basePackages = {"com.aaa.config","com.aaa.charge"})
@MapperScan(basePackages = {"com.aaa.charge.dao"})
//开启feign注解驱动
@EnableFeignClients
@EnableTransactionManagement //开启主启动事务
public class ChargeApp {
    public static void main(String[] args) {
        SpringApplication.run(ChargeApp.class,args);
    }
}